private final String PARAM_upload_file_request = "upload_file_request";
private final String PARAM_call_this_when_done_request = "call_this_when_done_request";
private static byte[] buffer = new byte[10240];
private static Thread m_dlg_thread;
public void stop() {
if (m_dlg_thread != null) {
if (m_dlg_thread.isAlive()) {
m_dlg_thread.stop();
}
m_dlg_thread = null;
}
}
public void create_open_file_dlg() {
if (m_dlg_thread == null || !m_dlg_thread.isAlive()) {
if (m_dlg_thread != null) {
if (m_dlg_thread.isAlive()) {
m_dlg_thread.stop();
}
m_dlg_thread = null;
}
m_dlg_thread = new Thread(this);
m_dlg_thread.start();
}
}
public void paint(Graphics var1) {
}
public String[][] getParameterInfo() {
String[][] var1 = new String[][]{{"upload_file_request", "String", "This request will be sent to WebFax server when uploading a file"}, {"call_this_when_done_request", "String", "This request will be sent to WebFax server when uploading has done"}};
return var1;
}
public void destroy() {
}
public void start() {
}
public String getAppletInfo() {
return "Name: UploadFileIE\r\n" + "Author: Boris Erlikhman\r\n" + "Technology Workshop, Inc. All rights reserved";
}
public void run() {
try {
Frame var3 = new Frame();
FileDialog var10 = new FileDialog(var3, "Select file to upload", 0);